package spe.ui.editor.figure;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.ImageFigure;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.ToolbarLayout;
import org.eclipse.draw2d.XYLayout;
import org.eclipse.swt.graphics.Image;

import spe.Activator;

public class RoleFigure extends SPEFigureImpl
{	
	public RoleFigure()
	{
		setLayoutManager(new XYLayout());
		//Image image = new Image(null, FILE_PATH);
		Image image = Activator.getDefault().getImage(Activator.IMG_ROLEDEF);
		imgFigure = new ImageFigure(image);
		nameLabel = new Label();
		
		add(imgFigure, ToolbarLayout.ALIGN_CENTER);
		add(nameLabel, ToolbarLayout.ALIGN_CENTER);
		setBackgroundColor(ColorConstants.lightGreen);
		setOpaque(true);
	}
}
